package cn.com.cennavi.bean;

import java.io.Serializable;

/**
 * 
 * @ClassName: OD_odNum_OutDataBean
 * @Description: TODO(OD模块的odnum子模块输出标准)
 * @author buf
 * @date 2017年2月10日 上午9:38:33
 *
 */
public class OD_OdNum_OutDataBean implements Serializable {
	// 年
	public String year;
	// 月
	public String month;
	// 日
	public String day;
	// o点最小网格id
	public String o_minGridId = "null";
	// o点区域id
	public String o_bestGridId;
	// o点二次网格id
	public String o_meshId = "null";
	// o点乡镇id
	public String o_county = "null";
	// o点城市id
	public int o_city;
	// o点省份id
	public int o_province;
	// d点最小网格id
	public String d_minGridId = "null";
	// d点区域id
	public String d_bestGridId;
	// d点二次网格id
	public String d_meshId = "null";
	// d点乡镇id
	public String d_county = "null";
	// d点城市id
	public int d_city;
	// d点省份id
	public int d_province;
	// 时间表示0表示该时间内汇出，1表示该时间内汇入
	public int timeFlag;

	// 时间粒度
	public float timeGranularity;
	// 时间粒度索引
	public int timeIndex;
	// od数
	public int ODNum;

	public String dataSource;

	public String toDataString() {
		StringBuffer sb = new StringBuffer();
		sb.append(this.dataSource);
		sb.append(",");
		sb.append(this.year);
		sb.append(",");
		sb.append(this.month);
		sb.append(",");
		sb.append(this.day);
		sb.append(",");
		sb.append(this.o_minGridId);
		sb.append(",");
		sb.append(this.o_bestGridId);
		sb.append(",");
		sb.append(this.o_meshId);
		sb.append(",");
		sb.append(this.o_county);
		sb.append(",");
		sb.append(this.o_city);
		sb.append(",");
		sb.append(this.o_province);
		sb.append(",");
		sb.append(this.d_minGridId);
		sb.append(",");
		sb.append(this.d_bestGridId);
		sb.append(",");
		sb.append(this.d_meshId);
		sb.append(",");
		sb.append(this.d_county);
		sb.append(",");
		sb.append(this.d_city);
		sb.append(",");
		sb.append(this.d_province);
		sb.append(",");
		sb.append(this.timeFlag);
		sb.append(",");
		sb.append((int)this.timeGranularity);
		sb.append(",");
		sb.append(this.timeIndex);
		sb.append(",");
		sb.append(this.ODNum);
		return sb.toString();
	}

	public void parseData(String line, OD_OdNum_OutDataBean t) {

	}
}